/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.ufpb.halloc.dados;

/**
 *
 * @author Kawe Ramon
 */
public class CursoDAOBDFactory extends CursoDAOFactory{

    public static final int PGSQL = 1;
    private static CursoDAOBDFactory cursoDAOBdFactory;
    
    
    public CursoDAOBDFactory(){
    }
    
    public static CursoDAOBDFactory getInstance(){
    
        if(cursoDAOBdFactory == null){
            return new CursoDAOBDFactory();
        }
        return cursoDAOBdFactory;
        
    }
    
    @Override
    public CursoDAO cursoDAOFactory(int tipo) {
        if(tipo == PGSQL){
            return CursoDAOPostgresSQL.getInstance();
        }
        
        return null;
    }
    
    
    
    
    
    
    
}
